
	<p class="pad_b15"><a href="#" class="UserComment">Comments (<?php echo $ctx->getComments['resultsCount']; ?>)</a></p>
<div class="TaskComInput">
<div class="blkCont">
<p class="UserImg"><img src="/Uploads/users/<?php echo $_SESSION['sess_photo']; ?>" height="40px" width="40px" /></p>
</div>
<div class="blkCont">
<div class="wid278">
<input type="text" id="comment" name="comment" value="" class="TextFile" onChange="submitComment(this,'0');" />
</div>
</div>
<div class="clear"></div>
</div>
<?php if(count($ctx->getComments['result'])>0) { ?>
<?php foreach($ctx->getComments['result'] as $comments) { ?>
<div class="TaskCom ">
<div class="blkCont">
<p class="UserImg"><img src="/Uploads/users/<?php echo $comments['photo']; ?>" height="40px" width="40px" /></p>
</div>
<div class="blkCont">
<div class="wid278">
<p class="UName"><a href="#"><?php echo $comments['first_name']; ?></a></p>
<p class="Desc"><?php echo $comments['comment']; ?></p>
<p class="Date"><?php echo ago(strtotime($comments['added_date']));?></p>
</div>
</div>
<div class="Fright">
<?php if($comments['user_id']==$_SESSION["sess_userid"] || $comments['owner_id']==$_SESSION["sess_userid"]) {  ?>
<span><a href="javascript:void(0);" onclick="deleteComment(<?php echo $comments['id']?>,'0');"><img src="/images/CloseIcon.png" alt="Close" border="0" class="img_inline" title="Delete"/></a></span>
<?php } ?>
</div>
<div class="clear"></div>
</div>

<? } ?>

<? } else { ?>
<p style="padding:50px 50px"><b><center>No Comments</center></b></p>
<? } ?>
<script type="text/javascript">
//<![CDATA[

//]]>
</script>